<section>
    <ul class="products">  
        <?php foreach($products as $p): ?>  
        <li>  
            <h3>
            	<?php echo $p['name']; ?>
            </h3>
           	<a href="<?php echo site_url()."/products/show_detailed_product/". $p['id'] . "/";?>">
           		<img src="<?php echo base_url(); ?>assets/images/<?php echo $p['image']; ?>" alt="<?php echo $p['image']; ?>" /> 
           	</a> 
            <small>Pris: <?php echo $p['price']; ?> :-</small> 
            
        	<?php echo form_open('/cart/add'); ?>
                <fieldset>  
                    <label>Antal: </label> 
                    <?php $data = array(
                        'name'          => 'button',
                        'id'            => 'btn-buy',
                        'value'         => 'Köp',
                        'type'          => 'submit',
                    ); ?> 
                    <?php echo form_input('quantity', '1', 'maxlength="2"'); ?>  
                    <?php echo form_hidden('product_id', $p['id']); ?>  
                    <?php echo form_submit($data); ?>  
                </fieldset>  
            <?php echo form_close(); ?>  
        </li>  
        <?php endforeach;?>  
    </ul>  
</section>